﻿using Microsoft.EntityFrameworkCore;
using RbacPermissionManage.DoMain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RbacPermissionManage.Repository
{
    /// <summary>
    /// 上下文类
    /// </summary>
    public class RbacDbContext:DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options"></param>
        public RbacDbContext(DbContextOptions<RbacDbContext> options) : base(options)
        {

        }

        /// <summary>
        /// 管理员表
        /// </summary>
        public DbSet<Admin>? Admin { get; set; }
    }
}
